﻿using MD5Hash;
using WebDAL;
using WebMODEL;

namespace WebBLL
{
    public class MemberBLL
    {
        public MemberBLL(MemberDAL dAL)
        {
            DAL = dAL;
        }

        public MemberDAL DAL { get; }

        /// <summary>
        /// 注册
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        public int AddMem(Member m)
        {
           return DAL.AddMem(m);
        }
        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="Name"></param>
        /// <param name="Pwd"></param>
        /// <returns></returns>
        public Member Login(string Name, string Pwd)
        {
            return DAL.Login(Name, Pwd);
        }
    }
}
